package de.tudarmstadt.fgbs.cafe.structure.beans;

import java.util.ArrayList;
import java.util.List;

import de.tudarmstadt.fgbs.cafe.structure.enumeration.ValidationStatus;

/**
 * 
 * @author Christian Schlehuber
 * @version 0.4
 * @since 0.4
 * 
 */
public class ValidationBean {

    private ValidationStatus status;
    private List<String> notifications;

    public ValidationBean(ValidationStatus status) {
	this.status = status;
	this.notifications = new ArrayList<String>();
    }

    public ValidationBean(ValidationStatus status, List<String> notifications) {
	this(status);
	this.notifications = notifications;
    }

    public void addNotification(String notification) {
	if (notification != null && !notification.equals(""))
	    this.notifications.add(notification);
    }

    /**
     * @return the status
     */
    public ValidationStatus getStatus() {
	return status;
    }

    /**
     * @return the notifications
     */
    public List<String> getNotifications() {
	return notifications;
    }
}
